<template>
   <div>
        <Header></Header>
         
        <router-view></router-view>
        <Footer></Footer>
   </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'

export default {
   name:'App',
   components:{Header,Footer},
   mounted(){
      //组件一挂载，就请求三级分类导航数据， 在这里发请求只需要请求一次，而不需要每次点击
      //超链接时候再请求
       this.$store.dispatch('home/getCategoryListData')
   }
}
</script>

<style>

</style>